package com.yalemang.photovalut.base

import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.Adapter

abstract class BaseChickAdapter<H: RecyclerView.ViewHolder>: Adapter<H>() {

    private lateinit var mHolder: H
    lateinit var itemClickListener: ItemClickListener
    lateinit var menuClickListener: MenuClickListener

    interface ItemClickListener{
        fun click(position: Int)
    }

    interface MenuClickListener{
        fun click(isExistFolder: Boolean)
    }

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): H {
        return getHolder(parent)
    }

    abstract fun getHolder(parent: ViewGroup): H
}